package com.zjgsu.demo.nodeEntity;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;

import java.util.List;

@NodeEntity(label="Sys")
public class Sys {
    @GraphId
    private Long id;
    private String sysName;
    private String sysDescrip;

    @Relationship(type = "sysDevs")
    @JsonProperty("sysDevs")
    private List<Dev> sysDevs;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSysName() {
        return sysName;
    }

    public void setSysName(String sysName) {
        this.sysName = sysName;
    }

    public String getSysDescrip() {
        return sysDescrip;
    }

    public void setSysDescrip(String sysDescrip) {
        this.sysDescrip = sysDescrip;
    }

    public List<Dev> getSysDevs() {
        return sysDevs;
    }

    public void setSysDevs(List<Dev> sysDevs) {
        this.sysDevs = sysDevs;
    }
}
